package apii.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * @author evgeniy
 *
 */
public class IllegalPageServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public IllegalPageServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO add some params handling
		PrintWriter pw = response.getWriter();
		pw.println("<!DOCTYPE HTML PUBLIC \"-//W3C/DTD HTML 4.0 Transitional//EN\">");
		pw.println("<html>");
		pw.println("<title> APPII Login Page </title>");
		pw.println("<body>");
		pw.println("<center>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<BR>");
		pw.println("<h2>");
		pw.println("<font size=\"12\" color=\"red\" face=\"Arial\">Illegal page</font>");
		pw.println("<BR>");
		pw.println("<font size=\"4\" color=\"red\" face=\"Arial\">the accident will be reported</font>");
		pw.println("</h2>");
		pw.println("</body>");
		pw.println("</html>");
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
